package com.d3works.apps.crm.service;

import com.d3works.apps.base.db.Partner;
import com.d3works.apps.crm.db.Opportunity;
import com.d3works.exception.D3worksException;
import com.google.inject.persist.Transactional;

public interface OpportunityService {

  @Transactional
  public void saveOpportunity(Opportunity opportunity);

  @Transactional(rollbackOn = {Exception.class})
  public Partner createClientFromLead(Opportunity opportunity) throws D3worksException;

  public void setSequence(Opportunity opportunity) throws D3worksException;
}
